<?php

/**
 * The main application controller every request starts here when logged in.
 *
 * @author Niels Janssen
 * @since 2009-04-20
 */
class DefaultController extends Controller
{
	/**
	 * @see Controller::$requiresAuthentication
	 *
	 */	
	protected $requiresAuthentication = true;
	
	/**
	 * 
	 * @see Controller::defaultAction()
	 */
	public function defaultAction()
	{
		$view = new HTMLView('Default/Main.tpl', $this->getSmarty());
		$view->assign( 'username', $this->user->getTitle() );
		$this->views->push( $view );
	}
	
	public function testAction()
	{
		echo '<h1>TEST ACTION</h1>';
	}
}
